<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>第二自然管理后台</title>
		<base href="{*$cf_site_addr*}"></base>
        <script src="/public/js/jquery/jquery.js" type="text/javascript"></script>
		<script src="/public/js/jquery/jquery.form.js" type="text/javascript"></script>
		<script src="/public/js/common.js" type="text/javascript"></script>
   	 	<script src="/public/js/jquery/asyncbox/asyncbox.v1.5.beta.min.js" type="text/javascript"></script>
    	<script src="/public/js/jquery/asyncbox/asyncbox_plugin.js" type="text/javascript"></script>
        <style type="text/css">
			html{}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote{margin:0;padding:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;font-family: "Arial";}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight: bold; color:#000;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}legend{color:#000;}table {font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;line-height:100%;}a,button{cursor:pointer}strong {font-weight:bold;}
			body{ background:url(/public/images/admin/login/loginbg1.jpg) center top no-repeat #dcdcdc; font-size:12px; color:#e30096; line-height:24px;}
			.main{width:1002px; height:580px; margin:0 auto; background:url(/public/images/admin/login/loginbg.jpg)}
			.loginbox{ padding-top:275px; width:400px; margin:0 auto;}

			#login_table td span{ display:block; text-indent:-999em;}
			.login_table_text{ border:none; background:none; font-family:"Arial", "黑体"; font-size:16px; font-weight:bold; width:260px;}
			.yzm{ width:85px;}
			.loginbutton{ width:265px; height:60px; display:block; margin-top:10px;}
			.footer{ text-align:center; font-size:10px; margin-top:25px; color:#9d9c9c; text-transform:uppercase;font-family: "Arial";}
			a{ color:#e30096; text-decoration:underline;}
			a:hover{ color:#e30096; text-decoration:underline;}
			.cdl, a:active { outline:none; blr:expression(this.onFocus=this.blur()) }
			:focus { outline:none } 
		</style>

        <script type="text/javascript">
			
		
            $(function(){
                $('#username').focus();
				
				//$("#login_form").submit();
                
				
				$("#login_form").submit(function(){
                    if($("#username").val()==''){
                        my_error('请输入用户名','操作提示',"$('#username').focus()");
						
                        return false;
                    }
                    if($("#password").val()==''){
						
                        my_error('请输入用户密码','操作提示',"$('#password').focus()");
						
                        return false;
                    }
                    // if($("#verify").val()==''){
                    //     my_error('请输入验证码','操作提示',"$('#verify').focus()");
                    //     return false;
                    // }
                })
				
				/*$("#button").click(function(){
					my_prompt('请输入密码','登录提示',"fun(val)",'aaa','password');
					})*/
				
            })
        </script>

    </head>

<body>

<div class="main">
<div class="loginbox">
    	<form name="login_form" id="login_form" method="post" action="{*$cf_self*}" />
            <input name="act" id="act" type="hidden"  value="login" />
            <input name="gologin" id="gologin" type="hidden"  value="1" />
            <input name="reurl" id="reurl" type="hidden"  value="{*$reurl*}" />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" id="login_table">
              <tr>
                <td width="111" height="45"><span>用戶名</span></td>
                <td colspan="2"><input name="username" id="username" type="text" class="login_table_text" value="admin" /></td>
                </tr>
              <tr>
                <td height="45"><span>密 碼</span></td>
                <td colspan="2"><input name="password" id="password" type="password" class="login_table_text" value="admin" /></td>
                </tr>
			<tr>
                <td height="46"><span>驗證碼</span></td>
                <td width="100"><input name="verify" id="verify" type="text" class="login_table_text yzm" /></td>
                <td width="189" align="left"><img src="{*$cf_root_url*}default/verify.htm" align="absmiddle" style="CURSOR: pointer; " title="点击换一张" onClick="chang_info('{*$cf_root_url*}default/verify.htm?k='+random_num(1,1000),'src',this)" name="verifycode" id="verifycode" /></td>
                </tr>
              <tr>
                <td colspan="3" align="center"><input type="image" alt="登錄" value="登錄" src="public/images/admin/login/button.png" align="absMiddle" border="0" name="RedImg" class="loginbutton" /></td>
              </tr>
            </table>
    </form>
    </div>
    <div class="footer">Copyright © 2015 第二自然. All Rights Reserved.</div>
</div>


</body>
</html>